//
//  AOP_UINavigation.m
//  lhpc_manager
//
//  Created by 赵永杰 on 2017/9/6.
//  Copyright © 2017年 zhaoyongjie. All rights reserved.
//

#import "AOP_UINavigation.h"
#import <Aspects/Aspects.h>

@implementation AOP_UINavigation

+ (void)load {
    [UINavigationController aspect_hookSelector:@selector(initWithRootViewController:) withOptions:0 usingBlock:^(id<AspectInfo> aspectInfo){
        UINavigationController *nv = aspectInfo.instance;
        //         设置导航栏上面的字体
        //        nv.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName: [UIFont systemFontOfSize:18]};
        //         导航栏上面按钮的颜色
        nv.navigationBar.tintColor = BLACKCOLOR;
        //         导航栏不透明
        nv.navigationBar.translucent = NO;
        // 设置状态栏的颜色为白色
        nv.navigationBar.barStyle = 0;
        
//        // 导航栏阴影
        nv.navigationBar.layer.shadowColor = HLHexColor(@"919191").CGColor;
        nv.navigationBar.layer.shadowOffset = CGSizeMake(0, 5);
        nv.navigationBar.layer.shadowOpacity = 0.2;
//        
        
        
    } error:NULL];
    
    
    
}

@end
